package com.sentrix.auto.printercenter.presentation.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "响应结果")
@Data
public class BaseResponse {
    @Schema(description = "请求唯一标识")
    private String uid;
    @Schema(description = "请求结果")
    private boolean success;
    @Schema(description = "请求结果码")
    private int code;
    @Schema(description = "请求结果信息")
    private String message;

    public BaseResponse() {
        this("", true, 200, "成功");
    }

    public BaseResponse(String uid, boolean success, int code, String message) {
        this.uid = uid;
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
